import request from '@/utils/request'

export function findUserList(current,size,userVO) {
  return request({
    url: '/user/findUserList',
      method: 'post',
      params: {
          current,
          size
    },
    data: userVO
  })
}

export function deleteAvater(file) {
  return request({
    url: '/oss/deleteImgFile',
      method: 'post',
      params: {
          file
    }
  })
}

export function exportExcel(userVO) {
  return request({
    url: '/user/export',
    method: 'post',
    data: userVO,
    responseType: "blob"
  })
}

export function doLogin(username,password) {
  return request({
    url: '/user/login',
    method: 'post',
   params:{
    username,
    password
   }
  })
}